<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<DIV class="widget-area" id="secondary" role="complementary">
	<ASIDE class="widget widget_recent_entries" id="recent-posts-2">
		<c:choose>
			<c:when test="${not empty sessionScope.init}">
				<c:forEach var="plugin" items="${sessionScope.init.plugins}">
					<c:choose>
						<c:when test="${plugin.isSystem==false}">
							<div class="widget-title">
								<h3>${plugin.pTitle}</h3>
								<p>${plugin.content}</p>
								<br />
							</div>
						</c:when>
						<c:otherwise>
							<c:choose>
								<c:when test="${plugin.pluginName eq 'types'}">
									<div class="widget-title">
										<h3>
											<c:out value="${plugin.pTitle}" />
										</h3>
										<ul>
											<c:forEach var="type" items="${sessionScope.init.types}">
												<li><a href="${rurl}/sort/${type.alias}">${type.typeName}</a>
												</li>
											</c:forEach>
										</ul>
									</div>
								</c:when>
							</c:choose>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</c:when>
		</c:choose>
		
				
						
		<h3 class="widget-title">
			<img width="250" height="250" src="${home}/upload/header/<s:property value='%{user.details.headerFileName}'/>"/><br/>
		</h3>
		<%-- <h2>加入时间:<s:property value="@com.fzb.forum4j.util.ParseTools@simpleDateStr(user.regTime)"/></h2> --%>
		<%-- <h3 class="widget-title">存档</h3>
		<ul>
 
			<c:forEach var="archives" items="${sessionScope.init.archives}">
				<li><a href="${rurl}/record/${archives.key}" rel="nofollow">${archives.key}
						(${archives.value})</a>
				</li>
			</c:forEach>
		</ul> --%>
		
		<div class="widget-title">
			<h3>
				<c:out value="博客分类" />
			</h3>
			<ul>
				<s:iterator  value="%{blogSort}">
					<li><a href="${home}/u/<s:property value='%{#parameters["t.user.userName"]}'/>/blog/sort/<s:property value="id"/>"><s:property value="sortName"/></a></li>
				</s:iterator>
			</ul>
		</div>

	 
 
		<h3 class="widget-title">友链</h3>

		<ul>
			<li><a href="http://94fzb.com" target="_blank">小春</a></li>
			<c:forEach items="${sessionScope.init.links}" var="link">
				<li><a href="${link.url }" title="${link.alt }" target="_blank">${link.linkName}</a></li>
			</c:forEach> 
		</ul>
	</aside>
</div>
